{%extends "admin/base.html"%}
{%block title%}
配置 - 北半球
{%endblock title%}

{%block metas%}
{{super()}}
{%endblock metas%}
{%block styles%}
{%if config.get("DEBUG")%}
{%include "_common-css.html"%}
<link rel="stylesheet" href="{{url_for("static", filename="css/admin/start.css")}}">
{%else%}
<link rel="stylesheet" href="{{url_for("static", filename="dist/css/start.min.css")}}">
{%endif%}

{{super()}}
{%endblock styles%}

{%block navbar%}
{%endblock navbar%}

{%block content%}

<div class="start-page">
    {%include "admin/start/_head.html"%}
    <div class="start-content">
        <h1 class="title">配置数据库</h1>
        <p>请正确填写如下的数据库信息!</p>
        <form class="form-horizontal" action="{{url_for("admin.setup", step=2)}}" method="post">
            {{ form.hidden_tag() }}
            <div class="form-group">
                <label class="col-sm-2 control-label" for="">数据库主机</label>
                <div class="col-sm-8">
                    <input name="host" class="form-control" type="text" value="localhost">
                </div>
            </div>
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">数据库名称</label>
                <div class="col-sm-8">
                    <input name="db" class="form-control" type="text" value="beibq">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="">用户名</label>
                <div class="col-sm-8">
                    <input name="username" class="form-control" type="text" value="用户名">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="">密码</label>
                <div class="col-sm-8">
                    <input name="password" class="form-control" type="text" value="密码">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-8">
                    <button type="submit" class="btn btn-default">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>

{%endblock content%}

{%block scripts%}

{%if config.get("DEBUG")%}
{%include "_common-js.html"%}
{%else%}
<script src="{{url_for("static", filename="dist/js/common.min.js")}}"></script>
{%endif%}

{{super()}}
{%endblock scripts%}


